# 使用官方 Node.js v18.19 镜像作为基础镜像
FROM node:19-bullseye

WORKDIR /usr/src/app
COPY . .

# RUN apt-get update && apt-get install -y \
#     libcairo2-dev \
#     libpango1.0-dev \
#     libjpeg-dev \
#     libgif-dev \
#     librsvg2-dev \
#  && rm -rf /var/lib/apt/lists/*
# RUN yarn install

# 如果你的应用监听在特定端口，比如 9008，暴露这个端口
EXPOSE 3000

# 运行 run.sh 脚本
CMD [ "/bin/sh", "/usr/src/app/bin/run.sh" ]